<script setup lang="ts">
import { computed, ref } from 'vue';


// 1. 不处理类型
// const handleChange = (e) => {
//   console.log('111', e.target.value)
// }

// 类型处理
 const handleChange = (e: Event) => {
  console.log('222', (e.target as HTMLInputElement).value)
 }
</script>

<template>
  <div class="app-page">
    <div>我是app</div>
    <input type="text" @change="handleChange" value="vue3很简单">
  </div>
</template>

<style lang="scss" scoped></style>
